if(DEFINED CONFIG_SAMPLE_SUPPORT_SLE_GATEWAY_SERVER)
set(SOURCES_LIST
    ${CMAKE_CURRENT_SOURCE_DIR}/module/sle/sle_uart_server/sle_uart_server_adv.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/sle/sle_uart_server/sle_uart_server.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/wifi/wifi_connect.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/oled/ssd1306_fonts.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/oled/ssd1306.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/oled/chinese_fonts.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/sht3x/sht3x.c
    ${CMAKE_CURRENT_SOURCE_DIR}/main_A.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/gps/gps.c
)
set(HEADER_LIST 
    ${CMAKE_CURRENT_SOURCE_DIR}/module/sle/sle_uart_server
    ${CMAKE_CURRENT_SOURCE_DIR}/module/oled
    ${CMAKE_CURRENT_SOURCE_DIR}/module/gps
    ${CMAKE_CURRENT_SOURCE_DIR}/module/sht3x
    ${CMAKE_CURRENT_SOURCE_DIR}/module/wifi
)
elseif(DEFINED CONFIG_SAMPLE_SUPPORT_SLE_GATEWAY_CLIENT)
set(SOURCES_LIST
    ${CMAKE_CURRENT_SOURCE_DIR}/module/sle/sle_uart_client/sle_uart_client.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/wifi/wifi_connect.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/oled/ssd1306_fonts.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/oled/ssd1306.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/oled/chinese_fonts.c
    ${CMAKE_CURRENT_SOURCE_DIR}/module/sht3x/sht3x.c
    ${CMAKE_CURRENT_SOURCE_DIR}/main_B.c
)
set(HEADER_LIST 
    ${CMAKE_CURRENT_SOURCE_DIR}/module/sle/sle_uart_client
    ${CMAKE_CURRENT_SOURCE_DIR}/module/oled
    ${CMAKE_CURRENT_SOURCE_DIR}/module/wifi
)
endif()

set(SOURCES "${SOURCES}" ${SOURCES_LIST} PARENT_SCOPE)
set(PUBLIC_HEADER "${PUBLIC_HEADER}" ${HEADER_LIST} PARENT_SCOPE)


